//
var TN_Widget = function() {
return {
//Options
newWindow : true,
linkText : "view
tickets",
tixUrl : "http://www.ticketnetwork.com/tix/",
trackingParams : "",
custLink : true,
//depricated
kbid : "",
//Overwrittable functions
trackingLink :"",
CreateCustomUrl : function(row) {
return this.tixUrl + row[7] + "-tickets-"+ row[6] + ".aspx";
},
CreateEventRow : function(row, isAlt) {
return "
" +
row[0] +" | " +
row[1] +" " +
row[2] +" | " +
row[3] +" " +
row[4] + " " +
row[5] + " | "+ this.linkText+ " |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kywrds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
if(this.kbid != "")
this.trackingParams = "?img=249&kbid="+this.kbid;
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = '' + newTable.join('') + '
';
} else
document.write('' + newTable.join('') + '
');
if(eventData.length >= 100 && kywrds != undefined) {
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML += '';
} else {
document.write("");
}
}
if(eventData.length > 0) {
document.getElementById("previewNote").style.display = "none";
}
}
};
}();
//BPW-TNSERV-01B
TN_Widget.CreateTable([['Electric Forest: Everything Always, Nelly Furtado & The Disco Biscuits (Time: TBD) - Thursday','Electric Forest Festival Grounds','Montague, MI','Thursday','6/20/2024','12:00 PM','6234480','Electric-Forest--Everything-Always--Nelly-Furtado---The-Disco-Biscuits--Time--TBD----Thursday-6-20-2024'],['The Disco Biscuits','Freeman Arts Pavilion','Selbyville, DE','Thursday','7/11/2024','6:00 PM','6415823','The-Disco-Biscuits-7-11-2024'],['The Disco Biscuits','The Bourbon Room at Showboat Resort Atlantic City','Atlantic City, NJ','Friday','7/12/2024','9:00 PM','6329329','The-Disco-Biscuits-7-12-2024'],['The Disco Biscuits','The National - VA','Richmond, VA','Saturday','7/13/2024','8:00 PM','6416932','The-Disco-Biscuits-7-13-2024'],['The Disco Biscuits','Greenfield Lake Amphitheater','Wilmington, NC','Sunday','7/14/2024','6:00 PM','6415558','The-Disco-Biscuits-7-14-2024'],['The Disco Biscuits','The Windjammer - Isle of Palms','Isle Of Palms, SC','Monday','7/15/2024','6:00 PM','6420101','The-Disco-Biscuits-7-15-2024'],['Great South Bay Music Festival: Dark Star Orchestra, The Disco Biscuits, Dogs In A Pile, Dopapod & Karina Rykman','Village Band Shell At Shorefront Park','Patchogue, NY','Saturday','7/20/2024','1:00 PM','6307136','Great-South-Bay-Music-Festival--Dark-Star-Orchestra--The-Disco-Biscuits--Dogs-In-A-Pile--Dopapod---Karina-Rykman-7-20-2024'],['The Disco Biscuits','Dillon Amphitheater','Dillon, CO','Friday','9/6/2024','6:00 PM','6293330','The-Disco-Biscuits-9-6-2024'],['The Disco Biscuits','Mishawaka Amphitheatre','Bellvue, CO','Saturday','9/7/2024','8:00 PM','6298535','The-Disco-Biscuits-9-7-2024'],['The Disco Biscuits','Mishawaka Amphitheatre','Bellvue, CO','Sunday','9/8/2024','7:00 PM','6319350','The-Disco-Biscuits-9-8-2024'],['The Disco Biscuits','The Depot - Salt Lake City','Salt Lake City, UT','Wednesday','9/11/2024','7:00 PM','6415741','The-Disco-Biscuits-9-11-2024']],'The Disco Biscuits','http://www.ticketnetwork.com/ticket/The-Disco-Biscuits-events.aspx');